/**
 * @Copyright:Copyright (c) 1992 - 2016
 * @Company: TengTong
 */

package com.tengtong.duang.web.servlet.impl;

import javax.servlet.http.HttpServletResponse;

import com.tengtong.duang.web.commons.WebResponse;

/**
 * WebResponse 的 Servlet 实现
 * 
 * @author Jai
 *
 */
public class ServletWebResponseImpl implements WebResponse{
	
	private final HttpServletResponse response;
	
	ServletWebResponseImpl(HttpServletResponse response){
		this.response = response;
	}

	/**
	 * @param resp
	 * @return
	 */
	public static WebResponse createInstance(HttpServletResponse resp) {
		ServletWebResponseImpl result = new ServletWebResponseImpl(resp);
		return result;
	}

}
